package com.spring.sso.controller;

import com.spring.sso.common.CommonResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : pangfuzhong
 * @description
 * @date : 2021/10/12 13:41
 */
@RestController
public class OrderController {

    @GetMapping("/getOrder/{id}")
    public CommonResult getOrder(String orderId) {
        CommonResult commonResult = new CommonResult();
        commonResult.setSuccess(Boolean.TRUE);
        commonResult.setData("成功获取订单信息");
        return commonResult;
    }

    @PostMapping("/getOrderList")
    public CommonResult getOrderList() {
        CommonResult commonResult = new CommonResult();
        commonResult.setSuccess(Boolean.TRUE);
        commonResult.setData("成功获取订单列表信息");
        return commonResult;
    }
}
